import { HttpReqMehod } from "../../enums/httpEnum";
import axios from "@/utils/request";
import { Login } from "../interface";
const BASE_URL = "/entertainment";

/**
 * 登录
 * @param data
 * @returns 字符串token
 */
export const crawImgs = <T>(params: { url: string }) => {
  return axios<T>({
    url: `${BASE_URL}/craw`,
    method: HttpReqMehod.GET,
    params,
  });
};

/**
 * 列出图片列表
 * @param params
 * @returns
 */
export const listImage = <T>(params: { page: number; size: number }) => {
  return axios<T>({
    url: `${BASE_URL}/listImage`,
    method: HttpReqMehod.GET,
    params,
  });
};
